package com.patent.dao;

import com.patent.domain.po.UnpaidFee;
import com.patent.domain.vo.PatentFeeVo;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UnpaidFeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UnpaidFee record);

    int insertSelective(UnpaidFee record);

    UnpaidFee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UnpaidFee record);

    int updateByPrimaryKey(UnpaidFee record);

	/**
	 * 查询监控专利的费用
	 */
	List<PatentFeeVo> queryPatentFee(List<PatentFeeVo> page);

	/**
	 * 查询单条未缴费的
	 */
	UnpaidFee queryUnpaidFee(Map<String, Object> map);

	/**
	 * 查监控的专利截止日期等
	 */
	List<PatentFeeVo> queryUnpaidPatent();

	/**
	 * 根据专利号查滞纳金总额和恢复专利权费用
	 */
	List<UnpaidFee> selectListByPatentId(Integer patentId);

	List<PatentFeeVo> selectAllIds(Map<String, Object> queryMap);
}